package com.example.demo.entity;

import javax.persistence.*;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author Buer
 */
@Data
@Setter
@Getter
@ToString
@Entity
@Table(name = "users")
@EntityListeners(AuditingEntityListener.class)
public class Users {

    // 用户id
    @Id
    @Column(name = "user_id")
    private String id;

    // 用户名
    @Column(name = "user_name")
    private String name;

    // 用户密码
    @Column(name = "user_password")
    private String password;

    // 用户权限
    @Column(name = "user_root")
    private String root;

    // 头像地址
    @Column(name = "image_url")
    private String image;
}
